package ManagerSystem;

import java.util.Scanner;

public class Student {
	public void Function(String UserStu){
		System.out.println("************学生功能菜单**************");
		System.out.println("*         1.查询个人信息                                       *");
		System.out.println("*         2.修改密码                                               *");
		System.out.println("*         3.查询同学信息                                       *");
		System.out.println("*         4.添加好友                                               *");
		System.out.println("*         5.查询我所有的好友                               *");
		System.out.println("*         0.  退出                                                 *");
		Scanner input=new Scanner(System.in);
		System.out.println("请选择序号：");
		int choose=input.nextInt();
		switch(choose){
		case 1:
			SearchInfo si=new SearchInfo();
		    si.SearchMe(UserStu);
		    this.Function(UserStu);
			break;
		case 2:
			ModifyInfo mi=new ModifyInfo();
		    mi.ModifyMe(UserStu);
		    this.Function(UserStu);
			break;
		case 3:
			SearchInfo si1=new SearchInfo();
		    si1.SearchOther();
		    this.Function(UserStu);
			break;
		case 4:
			AddFriend af=new AddFriend();
			af.NewFriend(UserStu);
		    this.Function(UserStu);
			break;
		case 5:
			SearchInfo si2=new SearchInfo();
		    si2.SearchFriend(UserStu);
		    this.Function(UserStu);
			break;
		case 0:
			System.out.println("已退出");
			Login l=new Login();
			l.UserLog();
			break;
		}
	}
	
}
